<?php

use Illuminate\Routing\Router;

Admin::registerHelpersRoutes();

Route::group([
    'prefix'        => config('admin.prefix'),
    'namespace'     => Admin::controllerNamespace(),
    'middleware'    => ['web', 'admin'],
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resources([
        //管理员
        'baoming' => BaomingController::class,
        'singer' => SingerController::class,
        'xxjh_baoming' => XxjhBaomingController::class,
    ]);
});
